package com.guigu.community.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.community.pojo.ProductCategory;
import com.guigu.community.pojo.Products;
import com.guigu.community.vo.InventoryVo;
import com.guigu.community.vo.ProductVo;

import java.util.List;

public interface ProductMapper extends BaseMapper<Products> {
    List<Products> selectVo(ProductVo vo);

    //根据Id查询
    Products selectById(Integer id);

    //根据分类级别查询
    List<ProductCategory> selectByLevel();

    //根据供应商Id查询
    List<Products> selectProductType(Integer suppliersId);

    List<Products> selectProducts(ProductVo productVo);

    //首页的热门商品展示：前20个
    List<Products> listId ();

}